package com.example.controller;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2017-4-20.
 */

@RestController
public class HiController {

    private static final Log log = LogFactory.getLog(HiController.class);

    @RequestMapping("/service2")
    public String hi() throws InterruptedException {
        log.info("sleuth-service2");
        Thread.sleep(100L);
        return "Service2";
    }


}
